package com.ck.exception.controller;

import com.ck.exception.CkException;
import com.ck.exception.bean.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname ErrorController
 * @Description 错误控制器返回
 * @Date 2021/7/14 9:06
 * @Created by lpc
 */
@RestController
public class ErrorController {

    @ApiOperation("错误")
    @GetMapping("/errorinfo")
    public Result error(){

        System.out.println("测试错误信息");
        throw new CkException("错误");
    }


}
